namespace Backfire
{
  /// <summary>
  /// The possible messages to return to the client
  /// </summary>
  public enum PostbackMessage
  {
    /// <summary>
    /// When the Backfire client is loaded, it can (optionally) do an initial check to see if
    /// it can save changes. If so, this message is returned so that the client can act upon it,
    /// for instance draw an extra button or toolbar.
    /// </summary>
    AccessGranted,
    
    /// <summary>
    /// When the Backfire client is loaded, it can (optionally) do an initial check to see if
    /// it can save changes. It access is denied, the client can act upon it like showing a
    /// friendly warning.
    /// </summary>
    AccessDenied,
    
    /// <summary>
    /// When saving went fine, this message is returned.
    /// </summary>
    SaveSuccessful,
    
    /// <summary>
    /// When saving failed (either access was denied, the file could not be found or whatever)
    /// this is returned.
    /// </summary>
    SaveFailed
  }
}